package week10;

/**
 * Created by mc on 2017/4/19.
 */
import java.util.logging.*;
 public class test {
     public static void main(String[] args){
         int b,c;
        int a[] = {1,2,3,4,5};
         for(b=0;b<5;b=b+1)
         {
             System.out.printf("%d,",a[b]);

         }
         a[2]=a[3];
         a[3]=a[4];
         a[4]=0;

         for(b=0;b<5;b=b+1)
         {
             System.out.printf("%d,",a[b]);

         }
         a[4]=a[3];
         a[3]=a[2];
         a[2]=3;
         for(b=0;b<5;b=b+1)
         {
             System.out.printf("%d,",a[b]);

         }
     }
 }